<template>
  <el-container>
    <div class="bloglist">
      <W-EssayList :Essays="Essays"></W-EssayList>
      <div class="page">
          <el-pagination
            @current-change="handleCurrentChange($event,index)"
            :background="true"
            layout="prev, pager, next"
            :current-page="currentPage"
            :page-size="pageSize"
            :total="total">
          </el-pagination>
      </div>
    </div>
  </el-container>
</template>

<script>
import EssayList from '../components/section/EssayList'
export default {
  data () {
    return {
      Essays: [],
      total: 0,
      currentPage: 1,
      pageSize: 10
    }
  },
  components: {
    'W-EssayList': EssayList
  }
}
</script>

<style lang="less" scoped>
.bloglist{
  margin-top: 30px;
  align-items: center;
  width: 100%;
}
.page{
  text-align: center;
}
</style>
